package _19;

public class String_array {
    public static void main(String[] args) {
        String [] array = { "found", "the", "sub", "string", "from", "hello", "world", "in", "java"};
        for (int i = 0; i < array.length; i++){
            if (array[i].equals("string")){
                System.out.println("Found string at index " + i);
            }
        }
    }
}
